8800. Hello, Python!

 

Print the message “Hello, Python!”.

 

Input. There is no input data.

 

Output. Print the message “Hello, Python!” as shown in the example.

 

Sample input

Sample output

 

Hello, Python!

 

 

SOLUTION

elementary problem

 

Algorithm analysis

In this problem you must print the message “Hello, Python!”.

 

Algorithm realization

Print the message “Hello, Python!” using the printf function.

 

printf("Hello, Python!\n");

 

The problem can also be solved using the puts function.

 

puts("Hello, Python!");

 

Java realization

Print the message “Hello, Python!” using the System.out.println function.

 

import java.util.*;

 

public class Main

{

  public static void main(String[] args)

  {

    System.out.println("Hello, Python!"); 

  }

}

 

Python realization

Print the message “Hello, Python!” using the print function.

 

print("Hello, Python!")